package com.zw.dto;

import com.zw.entity.BudgetColumnsContent;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class ImportBudgetDto {

    @Schema(description = "预算ID")
    private Long id;

    @NotNull(message = "项目ID不能为空")
    @Schema(description = "项目ID")
    private Long projectId;

    @NotNull(message = "模板ID不能为空")
    @Schema(description = "模板ID")
    private Long templateId;

    @Schema(description = "父类ID")
    private Long parentId;

    @Schema(description = "类型 0普通 1小节")
    private Integer type;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "预算")
    private BigDecimal budget;

    @Schema(description = "行号")
    private String rowId;

    @Schema(description = "是否有子项")
    private String hasChild;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "行内容")
    private List<BudgetColumnsContent> columnsContent;
}
